﻿@model Leo.Entities.Laboratorio
@{
    var ajaxoption = new AjaxOptions()
    {
        Url = Url.Action("Add"),
        OnSuccess = "OnSuccessCreate"
    };
}

<div id="dialogAdd" title="Registrar Laboratorio">
    @using (Ajax.BeginForm(null, null, ajaxoption, new { id = "frmCreate", name = "frmCreate" }))
    { 
        @Html.ValidationSummary(true)

        <fieldset>
            <legend>Laboratorio</legend>

            <div class="editor-label">
                @Html.LabelFor(model => model.nombre_lab)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.nombre_lab)
                @Html.ValidationMessageFor(model => model.nombre_lab)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.comentario)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.comentario)
                @Html.ValidationMessageFor(model=>model.comentario)
            </div>
        </fieldset>
    }
</div>
